package com.huawei.games.impl;

import com.huawei.games.ComputerControl;

import java.util.concurrent.ThreadLocalRandom;
public class ComputerControlImpl implements ComputerControl{
    @Override
    public int[] computerRandomGenerate(int num) {
        int[] computer = new int[num];
        for(int i = 0; i < num; i++){
            computer[i] = ThreadLocalRandom.current().nextInt(3);
        }
        return computer;
    }
}
